home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 106 / pascal / readme2.1st < prev    next >
Encoding:
Text File  |  1987-02-20  |  3.1 KB  |  81 lines

  1.              How to Use the Tutorial in Personal Pascal
  2.                        By  Jinfu Chen
  3.                          Jan. 1987
  4.  
  5.     This is the second part of the Turbo Pascal tutorial. Please read the
  6.     notes below if you try to compile the example programs in the package.
  7.  
  8.  
  9.   PRINT-TL.BAT   Batch print file for MS-DOS
  10. *  PROG11.PAS
  11. *  PROG12.PAS
  12. *  PROG12A.PAS
  13. %  PROG13.PAS
  14. *  PROG13A.PAS
  15. *  PROG14.PAS
  16. *  PROG15.PAS
  17. &  PROG15A.PAS
  18. &  PROG15B.PAS
  19. $  PROG15C.PAS
  20. &  PROG16.PAS
  21. @  PROG17.PAS
  22.    README2.1ST    This file
  23.    READ.ME
  24.    TIME.INC       An include file for Turbo Pascal
  25. @  ST_TIME.INC    Replace TIME.INC with this one when using Personal Pascal
  26. &$ CURSOR.PAS     Add screen functions to Personal Pascal
  27.    TL11.TXT       Introduction to FUNCTIONs
  28.    TL12.TXT       FUNCTION Application - Error Detection
  29. %  TL13.TXT       Strings
  30.    TL14.TXT       Introduction to PROCEDURE
  31.    TL15.TXT       Interactive Screen Handling
  32.    TL16.TXT       REAL numbers
  33.    TL17.TXT       A timing FUNCTION
  34.  
  35. Notes :
  36.  
  37. *  Programs can be compiled in Personal Pascal without modification
  38. %  Personal Pascal compiler checks string size matching strickly, unlike
  39.    Turbo Pascal. When you assign a string to a string variable, the size of
  40.    the string variable has to be at least equal or large than the string you
  41.    assign to. For example, the following will result compile error:
  42.  
  43.    PROGRAM stringerror ;
  44.  
  45.    VAR
  46.      S3 : STRING[3] ;
  47.  
  48.    BEGIN
  49.      S3 := 'String longer than 3' ;
  50.    END.
  51.  
  52. &  The screen functions like ClrScr, ClrEol are built-in in Turbo Pascal as
  53.    a result of poor graphic capability of IBM computers. GEM really provides
  54.    us an excellent user interface and Personal Pascal has a GEM library to
  55.    let people start writing programs with GEM interface easily (not that
  56.    handy when you are 'series' with GEM though). However, there is nothing
  57.    an IBM PC can do while ST can't do (the opposite is not true). OSS provides
  58.    us a package with routines of screen functions. CURSOR.PAS is a file you
  59.    can include with the example programs here to complish these screen
  60.    functions. Just add this line before the BEGIN
  61.    {$I CURSOR.PAS}
  62.    where 'I' is a compiler directive for Personal Pascal. Make sure CURSOR.PAS
  63.    is in the same dirctory(folder) of the compiler program.
  64. $  Add this line before PROCEDURE Print_Editing_Screen
  65.    {$I CURSOR.PAS}
  66.    Also change 'READ(First_Name)' in the Get_First_Name procedure to
  67.    'READLN(First_Name)'. Again, Personal Pascal is less sloppy than Turbo
  68.    Pascal in string length checking and this makes sense.
  69. @  Replace the line
  70.    {$I TIME.INC}
  71.    with
  72.    {$I ST_TIME.INC}.
  73.    This is obvious as the function is hardware dependent. If you can find a
  74.    friend who has Turbo Pascal and an IBM PC/XT/AT, ask him to do a benchmark,
  75.    say run 1000 iterations and compare the result in your ST. I am sure you
  76.    will appreciat you made a good decision, maybe you can convince your friend
  77.    to trade in his IBM too.
  78.  
  79. That's all folks. Once I get hold of the next package of tutorial, I will check
  80. the contents and compile the example programs then upload it. Happy Pascaling.
  81.